import request from '@/utils/request'

export function saveHospital(data) {
  return request({
    url: 'hospital/saveHospital',
    method: 'post',
    data
  })
}

export function listHospitalPage(data,pageNum,pageSize) {
  return request({
    url: 'hospital/listHospitalPage',
    method: 'post',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}

export function getHospital(data) {
  return request({
    url: 'hospital/getHospital',
    method: 'post',
    data
  })
}

export function updateHospital(data) {
  return request({
    url: 'hospital/updateHospital',
    method: 'post',
    data
  })
}
export function removeHospital(data) {
  return request({
    url: 'hospital/removeHospital',
    method: 'post',
    data
  })
}

